package com.chen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.entity.AccountA;
import org.apache.ibatis.annotations.Update;

import java.math.BigDecimal;

public interface AccountAService extends IService<AccountA> {
    AccountA findAccountByUserId(int userId);

    int frozenDollarAmount(int userId, BigDecimal dollarAmount);

    void commitDollarToRmb(int userId, BigDecimal dollarAmount);

    void cancelDollarToRmb(int userId, BigDecimal dollarAmount);
}
